package com.newbee.service;

import org.springframework.stereotype.Service;

@Service
public class DemoServiceC {

    public int funcC(int x) {
        if (x < 0) {
            throw new IllegalArgumentException("参数值是一个负数");
        }

        // 模拟接口耗时
        try {
            Thread.sleep(150);
        } catch (InterruptedException e) {

        }
        return x + 10;
    }
}
